local FRUITS = {5097, 2682, 2681, 2680, 2679, 2678, 2677, 2676, 2675, 2674, 2673}
local KNIFE = 2403
local ITEM_CAKE = 6278
local DECORATED_CAKE = 6279
function onUse(cid, item, fromPos, item2, toPos)
if item.itemid == KNIFE and isInArray( FRUITS, item2.itemid ) == TRUE and getPlayerItemCount(cid, ITEM_CAKE) >= 1 then
doRemoveItem(item2.uid, 1)
doPlayerRemoveItem(cid, ITEM_CAKE, 1)
doPlayerAddItem(cid, DECORATED_CAKE, 1)
end
return TRUE
end

